package cn.seocoo.platform.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.seocoo.platform.order.mapper.AuthOrderMapper;
import cn.seocoo.platform.order.domain.AuthOrder;
import cn.seocoo.platform.order.service.IAuthOrderService;
import cn.seocoo.platform.common.core.text.Convert;

/**
 * 认证缴费订单 服务层实现
 * 
 * @author wujian
 * @date 2019-12-30
 */
@Service
public class AuthOrderServiceImpl implements IAuthOrderService 
{
	@Autowired
	private AuthOrderMapper authOrderMapper;

	/**
     * 查询认证缴费订单信息
     * 
     * @param id 认证缴费订单ID
     * @return 认证缴费订单信息
     */
    @Override
	public AuthOrder selectAuthOrderById(Integer id)
	{
	    return authOrderMapper.selectAuthOrderById(id);
	}
	
	/**
     * 查询认证缴费订单列表
     * 
     * @param authOrder 认证缴费订单信息
     * @return 认证缴费订单集合
     */
	@Override
	public List<AuthOrder> selectAuthOrderList(AuthOrder authOrder)
	{
	    return authOrderMapper.selectAuthOrderList(authOrder);
	}
	
    /**
     * 新增认证缴费订单
     * 
     * @param authOrder 认证缴费订单信息
     * @return 结果
     */
	@Override
	public int insertAuthOrder(AuthOrder authOrder)
	{
	    return authOrderMapper.insertAuthOrder(authOrder);
	}
	
	/**
     * 修改认证缴费订单
     * 
     * @param authOrder 认证缴费订单信息
     * @return 结果
     */
	@Override
	public int updateAuthOrder(AuthOrder authOrder)
	{
	    return authOrderMapper.updateAuthOrder(authOrder);
	}

	/**
     * 删除认证缴费订单对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteAuthOrderByIds(String ids)
	{
		return authOrderMapper.deleteAuthOrderByIds(Convert.toStrArray(ids));
	}
	
}
